package com.zhanghaijun.createCode.Json;

import com.enniu.commons.util.JsonUtil;
import com.zhanghaijun.createCode.Json.bean.*;
import com.zhanghaijun.createCode.util.JSONUtil;
import com.zhanghaijun.createCode.util.PrintUtil;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by zhanghaijun on 15/6/3.
 */
public class JsonTest {

    public static void main(String[] args)throws Exception {


        List<MailPlaceholderBean> mailPlaceholderBeans =
                new ArrayList<MailPlaceholderBean>();

        MailPlaceholderBean mailPlaceholderBean = new MailPlaceholderBean();
        mailPlaceholderBean.setDefaultValue("11");
        mailPlaceholderBean.setKeyDesc("11111");
        mailPlaceholderBean.setKeyName("1111");
        mailPlaceholderBeans.add(mailPlaceholderBean);

        PrintUtil.println(JsonUtil.jsonFromObject(mailPlaceholderBeans));




    }


}
